import java.util.Scanner;

public class demo5 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        double b=0;
        for (int i = 0; i < 10; i++) {
            System.out.println("请输入第"+(i+1)+"件商品的价格");
            double a= scanner.nextDouble();
             b+=a;
        }
        System.out.println("应付总金额为"+b);
    }
}
